import request from "@/utils/request";

export function getAll() {
  return request({
    url: "/admin/article/category/all",
    method: "post"
  });
}

export function getList(data) {
  return request({
    url: "/admin/article/category/list",
    method: "post",
    data
  });
}

export function create(data) {
  return request({
    url: "/admin/article/category/create",
    method: "post",
    data
  });
}

export function edit(data) {
  return request({
    url: "/admin/article/category/edit",
    method: "post",
    data
  });
}

export function del(data) {
  return request({
    url: "/admin/article/category/del",
    method: "post",
    data
  });
}

export function getDetail(data) {
  return request({
    url: "/admin/article/category/detail",
    method: "post",
    data
  });
}
